package com.education.service.system;

import com.education.common.utils.Result;
import com.education.service.BaseService;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.subject.Subject;

/**
 * @Author: dongyaoyao
 * @CreateTime: 2024-08-13
 * @Description:
 * @Version: 1.0
 */


public class SystemAdminService extends BaseService {
    public Result login(String userName,String password){
       Subject subject=SecurityUtils.getSubject();
        UsernamePasswordToken usernamePasswordToken= new UsernamePasswordToken(userName,password);
       subject.login(usernamePasswordToken);//执行用户登录
        return null;
    }
}
